package com.xs.business.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.xs.business.mapper.TOrderFromMapper;
import com.xs.business.domain.TOrderFrom;
import com.xs.business.service.ITOrderFromService;

/**
 * 订单Service业务层处理
 * 
 * @author ruoyi
 * @date 2024-06-30
 */
@Service
public class TOrderFromServiceImpl implements ITOrderFromService 
{
    @Autowired
    private TOrderFromMapper tOrderFromMapper;

    /**
     * 查询订单
     * 
     * @param id 订单主键
     * @return 订单
     */
    @Override
    public TOrderFrom selectTOrderFromById(Long id)
    {
        return tOrderFromMapper.selectTOrderFromById(id);
    }

    /**
     * 查询订单列表
     * 
     * @param tOrderFrom 订单
     * @return 订单
     */
    @Override
    public List<TOrderFrom> selectTOrderFromList(TOrderFrom tOrderFrom)
    {
        return tOrderFromMapper.selectTOrderFromList(tOrderFrom);
    }

    /**
     * 新增订单
     * 
     * @param tOrderFrom 订单
     * @return 结果
     */
    @Override
    public int insertTOrderFrom(TOrderFrom tOrderFrom)
    {
        return tOrderFromMapper.insertTOrderFrom(tOrderFrom);
    }

    /**
     * 修改订单
     * 
     * @param tOrderFrom 订单
     * @return 结果
     */
    @Override
    public int updateTOrderFrom(TOrderFrom tOrderFrom)
    {
        return tOrderFromMapper.updateTOrderFrom(tOrderFrom);
    }

    /**
     * 批量删除订单
     * 
     * @param ids 需要删除的订单主键
     * @return 结果
     */
    @Override
    public int deleteTOrderFromByIds(Long[] ids)
    {
        return tOrderFromMapper.deleteTOrderFromByIds(ids);
    }

    /**
     * 删除订单信息
     * 
     * @param id 订单主键
     * @return 结果
     */
    @Override
    public int deleteTOrderFromById(Long id)
    {
        return tOrderFromMapper.deleteTOrderFromById(id);
    }
}
